#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .inventoryResource import inventory_blueprint
from .outboundOrdersResource import outboundorders_blueprint
from .warehousesResource import warehouses_blueprint
from .inboundOrdersResource import inboundorders_blueprint
from .productsResource import products_blueprint


def init_router(app):
    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # inventory blueprint register
    from api_1_0.inventoryResource import inventory_blueprint
    app.register_blueprint(inventory_blueprint, url_prefix="/api_1_0")
    
    # outboundOrders blueprint register
    from api_1_0.outboundOrdersResource import outboundorders_blueprint
    app.register_blueprint(outboundorders_blueprint, url_prefix="/api_1_0")
    
    # warehouses blueprint register
    from api_1_0.warehousesResource import warehouses_blueprint
    app.register_blueprint(warehouses_blueprint, url_prefix="/api_1_0")
    
    # inboundOrders blueprint register
    from api_1_0.inboundOrdersResource import inboundorders_blueprint
    app.register_blueprint(inboundorders_blueprint, url_prefix="/api_1_0")
    
    # products blueprint register
    from api_1_0.productsResource import products_blueprint
    app.register_blueprint(products_blueprint, url_prefix="/api_1_0")
    
